package security;


import java.io.IOException;

/**
 * Interface that defines methodes to send and receive Messages
 * @author Group 95
 */
public interface Channel {
    
    byte[] receiveMessage() throws IOException;
    byte[] reReceiveMessage();
    void sendMessage(byte[] strMessage) throws IOException;    
    void close();
    /**
     * Checks if something is readable from the underlying socket
     * @return true if something can be read from the socket
     */
    boolean receivable() throws IOException;
}
